var resData = {

    getInfo: {
        "isSuccess": true,
        "code": 0,
        "data": {
            "userInfo": {
                "nickName": "test", //微信昵称
                "avatar": "fddtest" //微信头像
            },
            "todayInfo": {
                "giftStatus": false, //今日是否抽奖 giftStatus未false时不用判断gatheStatus
                "gatheStatus": false, //抽奖是否提交过信息
                "giftId": '' //奖品信息
            }
        }
    },
    submitUserInfo: {
        "isSuccess": true,
        "code": 0,
        "data": {
            "imgUrl": "christmas/iuy8hqr2xyh.png", //分享图片地址
            "shareId": "iuy8hqr2xyh" // 分享用户查询id
        }
    },
    saveAddress: {
        "isSuccess": true,
        "code": 0,
        "data": "请求成功"
    },
    gift: {
        "isSuccess": true,
        "code": 0,
        "data": "101"
    },

    share: {
        "isSuccess": true,
        "code": 0
    },

    jssdkSignature: {
        "isSuccess": true,
        "code": 0,
        "data": {
            "nonceStr": "el11ova1nbv",
            "timestamp": "1550500062",
            "signature": "b5ceb6427a08da52944cc1b74e92c2ae7d8ed0a8",
            "appId": "wx5f1c39ca61371c94"
        }
    },
    getSubscribeInfo: {
        "isSuccess": true,
        "code": 0,
        "data": {
            "wechatInfo": {
                "subscribe": 1,
                "openid": "okmrP0srHXIrerflwCH7b1LQ5L4k",
                "nickname": "稳稳的幸福",
                "sex": 1,
                "language": "zh_CN",
                "city": "长宁",
                "province": "上海",
                "country": "中国",
                "headimgurl": "http://thirdwx.qlogo.cn/mmopen/AJ9ibibuwiaNibnq9FqhEXwkFZIibmkFK7zUd4Nwx32RC416eD3QicjwmFtHNN5xoJdEhAnEbMKgcaDQScbGx871pkrsKkIBx9NiaPl/132",
                "subscribe_time": 1605769239,
                "unionid": "oHWlvw1WXkLEjBTsIcHSU2giqUoo",
                "remark": "",
                "groupid": 0,
                "tagid_list": [],
                "subscribe_scene": "ADD_SCENE_SEARCH",
                "qr_scene": 0,
                "qr_scene_str": ""
            }
        }
    },

    getShareInfo: {
        "isSuccess": true,
        "code": 0,
        "data": {
            "nickName": "test",
            "avatar": "fddtest",
            "imgUrl": "christmas/syk288rwpzf.png",
            "shareId": "iuy8hqr2xyh"
        }
    }

};

Mock.setup({
    timeout: '10-50'
});

Mock.mock('/getUserInfo', resData.getInfo);

Mock.mock('/submitUserInfo', resData.submitUserInfo);
Mock.mock('/saveAddress', resData.saveAddress);
Mock.mock('/gift', resData.gift);
Mock.mock('/share', resData.share);
Mock.mock('/jssdkSignature', resData.jssdkSignature);
Mock.mock('/getSubscribeInfo', resData.getSubscribeInfo);
Mock.mock('/getShareInfo', resData.getShareInfo);